package beanCuenta;

import java.io.Serializable;

import javax.persistence.*;

import org.hibernate.annotations.ForeignKey;

@Entity
@Table(name = "ACCOUNT_DETAIL")
public class AccountDetail implements Serializable{

    @EmbeddedId
    private AccountDetailID accountDetailPk;

    public AccountDetail(){
    	this.accountDetailPk = new AccountDetailID();
    }

	public AccountDetailID getAccountDetailPk() {
		return accountDetailPk;
	}

	public void setAccountDetailPk(AccountDetailID accountDetailPk) {
		this.accountDetailPk = accountDetailPk;
	}

	public void setIdDetail(long l) {
		this.accountDetailPk.setIdDetail(l);
	}

	public void setIdAccount(Long idAccount) {
		this.accountDetailPk.setIdAccount(idAccount);
	}
    
}

